package com.liveneo.adapter.mobile.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liveneo.adapter.base.entity.PrpmImageSurvey;
import com.liveneo.adapter.base.mapper.PrpmImageSurveyMapper;
import com.liveneo.adapter.mobile.service.PrpmImageSurveyService;

/**
 * @Desc：
 * @Title：PrpmImageSurveyServiceImpl
 * @address: http://www.liveneo.com.cn/
 * @author: Liuzhipeng
 * @version: 1.0 
 * @date: 2016年10月11日 下午5:17:09
 */
@Service
public class PrpmImageSurveyServiceImpl implements PrpmImageSurveyService {
    @Autowired
    PrpmImageSurveyMapper prpmImageSurveyMapper;

    @Override
    public PrpmImageSurvey selectByCaseUuid(String caseUuid) throws Exception {
        return prpmImageSurveyMapper.selectByCaseUuid(caseUuid);
    }

    @Override
    public int updateById(PrpmImageSurvey prpmImageSurvey) throws Exception {
        return prpmImageSurveyMapper.updateByPrimaryKey(prpmImageSurvey);
    }

    @Override
    public int save(PrpmImageSurvey prpmImageSurvey) throws Exception {
        return prpmImageSurveyMapper.insert(prpmImageSurvey);
    }
}
